function GetCookie(a) {
    var b = document.cookie.match(new RegExp("(^| )" + a + "=([^;]*)(;|$)"));
    return null != b ? unescape(b[2]) : ""
}
function SetCookie(a, b) {
    var c = 5,
    d = new Date;
    d.setTime(d.getTime() + 1e3 * 60 * 60 * 24 * c),
    document.cookie = a + "=" + escape(b) + ";expires=" + d.toGMTString() + ";path=/;"
}
function youhuigg_show(){
    a = GetCookie("gg");
    if (a==''){
        $("#s11ad1").show();
        $("#s11ad2").hide();
    }else{
        $("#s11ad2").show();
        $("#s11ad1").hide(); 
    }
}
function youhuigg_set(num){
    if (num==1){
       SetCookie("gg","yes");
    }else{
       SetCookie("gg",""); 
    }
    youhuigg_show();
}
youhuigg_show();
//end

